-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Message-ID header in email when not set. #2915
Conversation
…sent, otherwise messages are blocked/getting marked as spam.
PR Summary
|
@@ -296,6 +297,12 @@ void SmtpClient::sendMailHeaders(MailMessage* mail) | |||
mail->stream = std::make_unique<QuotedPrintableOutputStream>(mail->stream.release()); | |||
} | |||
|
|||
if(!mail->headers.contains(F("Message-ID"))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add Message-ID
to HTTP_HEADER_FIELDNAME_MAP
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://en.wikipedia.org/wiki/Message-ID is not really related or used in HTTP.
I've cleared esp32 idf cache, should fix the failed CI runs |
Guess not. Something's broken with IDF python... |
Google Mail and others started requesting Message-ID header to be present, otherwise messages are blocked/getting marked as spam.